﻿/**************************************************************
*作者：Leon
*创建时间：2022/1/10 20:28:23
**************************************************************/

namespace MyBlog.Model;

public class BlogNews : BaseId
{
    [SugarColumn(ColumnDataType = "nvarchar(30)")]
    public string Title { get; set; }
    [SugarColumn(ColumnDataType = "text")]
    public string Content { get; set; }
    public DateTime Time { get; set; }
    public int BrowseCount { get; set; }
    public int LikeCount { get; set; }
    public int TypeId { get; set; }
    public int WriterId { get; set; }
    /// <summary>
    /// 文章类型
    /// </summary>
    [SugarColumn(IsIgnore = true)]
    public TypeInfo TypeInfo { get; set; }
    [SugarColumn(IsIgnore = true)]
    public WriterInfo WriterInfo{ get; set; }
}
